const webpack = require('webpack');
module.exports = {
      devtool: "source-map",
    plugins: [new webpack.HotModuleReplacementPlugin()],
    devServer: {
        hot: true,
        port: 8212,
        allowedHosts: 'all',
        client: {
            progress: true,
            overlay: true,//启动项目后遇到错误信息，会有一个iframe遮住整个页面,关闭
        }
    }
}
